what are the factors affecting cognitive development