The prince visited an 11-bed housing scheme in Poole for people with mental health issues.