factors affecting cognitive development according to piaget