Risk of impaired cognition after prenatal exposure to psychotropic drugs