President Donald Trump accused China of compromising voter data from the US presidential election in 2020.