New research suggests that time and aging change how people deal with regrets. Here’s what it could mean for doctors.