Adaptive Use of Information during Growth Can Explain Long-Term Effects of Early Life Experiences