HCDG: A Hierarchical Consistency Framework for Domain Generalization on Medical Image Segmentation