Cosmic magnetic fields and the CMB