A theory of developmental change in quantitative phenotypes applied to cognitive development