AMD is to split into two companies – one focused on designing microprocessors and the other on the costly business of manufacturing them – in an effort to maintain its position as a rival to Intel.