A new study finds that investors who have been in their company’s retirement plan for 15 years have seen solid gains.