Elder statesman Shimon Peres was elected to the largely ceremonial post of president of Israel Wednesday, capping a career that has spanned six decades and, Israelis hope, restoring dignity to a position that has been marred by allegations of rape and sexual assault swirling around the country's current president.