A “nation-state” used Wikileaks to influence the US election, the head of the NSA says