Artificial intelligence looks like a political campaign manager’s dream because it could tune its persuasion efforts to millions of people individually – but it could be a nightmare