The Gaia-ESO Survey: A new diagnostic for accretion and outflow activity in the young cluster NGC 2264