Eating processed foods and sugars early in life could permanently damage your memory, new study reveals