An epigenetic basis of adaptive plasticity in Drosophila melanogaster