Kinetics of natural and acquired immunity to typhoid fever