Mid-life changes 'can boost health'