Effect of nuclear matter on the production of hadrons in deep-inelastic neutrino scattering