Cosmic ray modulation and the solar magnetic field