US President Donald Trump hosted Xi Jinping for a formal state dinner following high-level discussions on trade and diplomatic ties.