Hacking had no effect on US election, Trump says