AI is too risky for hackers, says former GCHQ boss