Evidence of positive and negative selection associated with DNA methylation