A time-dependent diffusion-convection model for the long-term modulation of cosmic rays