EU agrees 'historic' deal on Artificial Intelligence regulation