United States President Donald Trump has said he will visit China early next year after receiving an invitation from Beijing.