Donald Trump has said he wishes Britain’s outgoing ambassador to Washington Sir Kim Darroch well following his resignation over his leaked diplomatic cables.

Sir Kim stepped down on Wednesday saying his position as UK envoy to the US had become “impossible” after Mr Trump branded him a “very stupid guy” and a “pompous fool”.

The US president claimed on Friday that he had been told Sir Kim had actually said “very good things” about him, and suggested the ambassador was “sort of referring to other people” when making negative remarks about the White House.

He warned, however, that the British needed to stop their “leaking problems” following the transatlantic war of words in recent days.

“I wish the British ambassador well, but they have got to stop their leaking problems there just like they have to stop them in our country,” he told reporters in Washington.

20 pictures that sum up President Trump's visit Show all 20 1 /20 20 pictures that sum up President Trump's visit 20 pictures that sum up President Trump's visit An awkward greeting As the Queen welcomed Trump to Buckingham Palace, he shared an awkward handshake with her. PA 20 pictures that sum up President Trump's visit "Oi Trump" Essex teenager Ollie Nancarrow mowed this message to Trump in a field near Stansted airport, in order that the president would be forced to see it as he came in to land. BornEco 20 pictures that sum up President Trump's visit A warm welcome Protesters gesture at the helicopter carrying the president as he arrives at Buckingham Palace on the first day of his visit. Getty 20 pictures that sum up President Trump's visit Inspecting the guard After arriving at Buckingham Palace, President Trump inspected an honour guard with Prince Charles. AP 20 pictures that sum up President Trump's visit Khan hits back After the president insulted Sadiq Khan, the London mayor, over Twitter as he landed in Britain, Khan hit back in this video released by Elle. PA 20 pictures that sum up President Trump's visit Mild reception on the Mall The Mall, the road leading to Buckingham Palace, was lacking in pomp as Trump arrived after his visit to Westminster Abbey, only a very small crowd turned out to see the spectacle. Reuters 20 pictures that sum up President Trump's visit Toast with the Queen The president shared a toast with the Queen at the state banquet on his first night in Britain. Reuters 20 pictures that sum up President Trump's visit Creepy kids This picture of Ivanka Trump and husband Jared Kushner, shared to Ivanka's Instagram, was described variously as "terrifying", like "nightmares" and "scarier than the shining." Getty 20 pictures that sum up President Trump's visit Rolling out the red carpet A red carpet was rolled out for the president's arrival to 10 Downing Street. Reuters 20 pictures that sum up President Trump's visit Meeting with May President Trump met with Prime Minister Theresa May on the second day of his visit. They did not speak privately but in a boardroom meeting. Reuters 20 pictures that sum up President Trump's visit Spouses get along First Lady Melania Trump and husband of the prime minister Philip May attended a garden party for the families of Downing Street staff while the two leaders were in their meeting. Getty 20 pictures that sum up President Trump's visit Baby blimp flies again The famous Trump baby blimp made a return in the protests against the president's visit, after first appearing in July last year. EPA 20 pictures that sum up President Trump's visit Crowd gathers A large crowd of protesters gathered in Trafalgar Square in London to protest the president's visit. Notable protesters included a man selling Donald Trump toilet paper and a man dressed as Vladimir Putin controlling a Trump puppet. PA 20 pictures that sum up President Trump's visit Protesters mix and mingle Supporters of the president and protesters of his visit clashed by Parliament Square on the second day of Trump's visit, with some supporters being hit by milkshakes. Reuters 20 pictures that sum up President Trump's visit Toilet Trump A 20ft statue of Trump tweeting while sitting on a golden toilet was placed in Trafalgar Square as protesters gather on the second day of the president's visit. Tom Batchelor / The Independent 20 pictures that sum up President Trump's visit Corbyn speaks In an address to protesters, Labour leader Jeremy Corbyn accused the president of spreading "hatred" and "racism" and expressed disappointment that Sadiq Khan had "been attacked in the way he was." PA 20 pictures that sum up President Trump's visit Churchill hat During his interview with the president on Good Morning Britain, Piers Morgan gave Trump a hat of a style favoured by Winston Churchill, one of Trump's heroes. ITV 20 pictures that sum up President Trump's visit Bus stop baby Activists Special Patrol Group installed this poster in to several bus stops around Portsmouth ahead of the president's arrival for D-Day commemorations PA 20 pictures that sum up President Trump's visit Fly-past with the queen President Trump watched the Red Arrows fly-past with the Queen at an event in Portsmouth to commemorate the 75th anniversary of the D-Day landings AFP/Getty 20 pictures that sum up President Trump's visit Commemoration speech The president gave a speech at an event to commemorate the 75th anniversary of the D-Day landings. Along with Trump, the prime minister and the royal family, French president Emmanuel Macron and 300 Second World War veterans were in attendance. AFP/Getty

Mr Trump made clear earlier this week that he had been enraged by Sir Kim’s leaked dispatches branding his administration as “inept” and “dysfunctional”.

But on Friday, following the resignation, the president had changed his tone. “I guess I quoted [Republican Senator] Lindsey Graham today. He said some things that were pretty nice from the British ambassador.”

Conservative leadership candidate Boris Johnson has come under fire from a number of his party’s MPs, who accuse him of betraying the UK’s ambassador in the transatlantic spat.

Sir Kim Darroch, who resigned amid a row regarding leaked emails which criticised the Trump administration (Getty Images)

Some Tories said Mr Johnson had thrown Sir Kim “under the bus” when he failed to give the ambassador his support in a TV debate after Mr Trump launched a war of words against the envoy.

Foreign secretary Jeremy Hunt – Mr Johnson’s rival to be the next prime minister – urged British diplomats to keep speaking “without fear or favour” following the fiasco.

“Please keep speaking up without fear or favour, remembering that the UK government alone will determine appointments based on our national interest alone,” Mr Hunt said in a message to staff at the Foreign Office.

“I want you to know that you will always get all the support you need to carry out your vital work.”

Liz Truss, chief secretary to the Treasury, was among the senior Tories warning outgoing PM Theresa May that appointing the next envoy to Washington was a job for her successor.