Duration of untreated psychosis and cognitive functioning in first-episode patients