Aggregate Shocks, Political Constraints and Social Security Design