People detained under Mental Health Act are becoming more unwell because of poor community support, says CQC