An empirical model for the 11-year cosmic-ray modulation