Factors associated with intellectual ability of children born to mothers with high risk pregnancies