A former head of the CIA said Tuesday that Russian hacking of US political groups is intended to "mess with our heads" and shake confidence in the American electoral system -- rather than influence the outcome on Election Day.