Adaptive Partitioning for Cooperative Multi-agent Perimeter Defense