provided further, that the department shall not refer or discharge a child or adolescent to the custody or care of the department of children and families until the department of mental health forwards its assessment and recommendation as to whether the child or adolescent is appropriate for foster care or, due to severe emotional disturbance, is more appropriate for group care