President Trump has called for the Republican party and the federal government to take control of local elections as polls show Democratic gains.