A Fully Time-dependent Ab Initio Cosmic-Ray Modulation Model Applied to Historical Cosmic-Ray Modulation