Paterno to retire at end of season