Coupling of the solar wind to temporal fluctuations in ground magnetic fields