Adaptive Strategies for Team Formation in Minimalist Robot Swarms