Measurement of D*± production in deep inelastic scattering at HERA