Correlates of functioning in a population with dual diagnoses: an examination of diagnosis and problem history