Diffusion of solar cosmic rays and the power spectrum of the interplanetary magnetic field