DPFormer: Learning Differentially Private Transformer on Long-Tailed Data