Donald Trump’s win shows the need to build a world where “racism and hatred is rejected”, London Mayor Sadiq Khan said.