The left must master the new technology to take on the authoritarians, the British PM's former top aide said.