Ketogenic diet may restore lost cognitive function