Lawrence H. Summers, a Harvard University economist and the university’s former president, will step back from his teaching duties while the university investigates his ties to the disgraced financier and sex offender Jeffrey Epstein, a spokesman for Mr. Summers said Wednesday.