Emergence of social groups after a biosecurity incursion