Multiple pathways to developmental continuity in infant cognition