US President Donald Trump has joined a growing list of world leaders who have been infected with the coronavirus.