Dipolar dark matter and CMB B-mode polarization