Charm production in charged current deep inelastic scattering at HERA