Problem gambling and substance use in patients attending community mental health services