At a press conference Friday, the president declined to speculate on Russia’s motives for hacking.