Children in youth custody were “failed” by multiple services long before they offended, the Children’s Commissioner has warned.