The Cepheid mass discrepancy and pulsation-driven mass loss