Magnetism, rotation and accretion in Herbig Ae-Be stars