Ambitwistor strings and the scattering equations at one loop