Collaborative Task Allocation And Motion Planning For Multi-Agent Systems In The Presence Of Adversaries