Prime Minister Theresa May has said she has told Sir Kim Darroch that it is a “matter of great regret” that he has felt it necessary to resign as the UK ambassador to Washington.