Agent-based model for developmental aggregation in Myxococcus xanthus bacteria