FMMformer: Efficient and Flexible Transformer via Decomposed Near-field and Far-field Attention