British ambassador to the US Sir Kim Darroch resigned after seeing likely future prime minister Boris Johnson refuse to back him over leaked criticism of Donald Trump, The Independent understands.