Magnetism in Herbig Ae/Be stars and the link to the Ap/Bp stars