Accurate identification of co-methylated and differentially methylated regions in epigenome-wide association studies