A new study found you can ward off the negative impact of fatty foods and stress