Cognitive impairment in cocaine users: evidence from cross-sectional and longitudinal analyses