Research has pinpointed the prime years for making smart financial decisions.