Measurement of fragmentation properties of charmed particle production in charged-current neutrino interactions