Sir Kim Darroch is to resign as British ambassador to the United States following the leak of memos highly critical of Donald Trump’s White House.