Learning Hierarchical Control For Multi-Agent Capacity-Constrained Systems