The president had been due to speak at the White House Correspondents' Dinner at the Washington Hilton.