Probing light mediators and (g − 2)μ through detection of coherent elastic neutrino nucleus scattering at COHERENT