Measurement of the Q2, x and W2 dependence of single hadron production in deep inelastic muon scattering