Xi Jinping has warned Donald Trump that the US and China could “come into conflict” over Taiwan during a bilateral meeting.