Children in the state’s welfare system are being warehoused in psychiatric hospitals and emergency shelters hundreds of days longer than they should be in many cases because the agency does not have a place for them, a new report found.