Factors contributing to the duration of untreated psychosis