Retirement accounts rebound to record highs after early-year slump. Here’s how to maximize your contributions