Con4m: Context-aware Consistency Learning Framework for Segmented Time Series Classification