China has rejected claims by U.S. President Donald Trump that Xi Jinping promised not to invade Taiwan during his term, adding that the island was an internal matter for Beijing.