The study found that as people get older, the idea that weight is determined more by DNA than factors people can control — such as diet and exercise — is associated with poor eating habits.