Socio-demographic and clinical factors associated with relapse in mental illness