Plasma dipole resonance in the presence of a magnetic field