Longitudinal assessment of the impact of preterm birth on cognitive functions and identification of novel methods for stratification of children at risk of long-term impairment