John Duncan, Foreign and Commonwealth Office