Inhibition of thermohaline mixing by a magnetic field in Ap star descendants : implications for the Galactic evolution of 3He