How your diet could be affecting your memory