David Camerons tidigare stabschef ansluter sig till det brittiska utrikesdepartementet