Medformer: A Multi-Granularity Patching Transformer for Medical Time-Series Classification