Association between continuity of care and treatment outcomes in psychiatric patients in Germany: a prospective cohort study