Walking can build up the brain, study says