The London Mayor says the capital must be ‘clear-eyed’ about the potential perils of AI while embracing its ‘amazing possibilities’