An ambitwistor Yang–Mills Lagrangian