Decisions about the care of vulnerable children are often driven by local capacity and resource rather than need, the children’s commissioner has warned.