Eating processed food like ice cream hurts brain function, study says