US Republican campaign emails hacked months before election