The Star Formation Histories of Red-Sequence Galaxies