Magnetic field effect on polarization and dispersion of exciton-polaritons in planar microcavities