US President Donald Trump says bilateral trade has been unfair to the United States, while Chinese President Xi Jinping says his country would be more open to foreign firms in a joint speech in Beijing.