P-wave polarization of the ϱ-meson and the dilepton spectrum in dense matter