A new study shows our memory plays a key role in influencing what and how much we eat