China's foreign ministry denied Trump's accusation that Beijing is trying to influence the US congressional elections.