Measurement of charged current coherent pion production by neutrinos on carbon at MINERνA