Eating processed foods like ice cream harms brain function, study finds