US President Donald Trump initially backed the countries blockading Qatar, before calling on all sides to resolve the dispute.