Planck intermediate results. XXXIV. The magnetic field structure in the Rosette Nebula