CoFormer: Collaborating with Heterogeneous Edge Devices for Scalable Transformer Inference