Effects of drift on the transport of cosmic rays IV. Modulation by a wavy interplanetary current sheet