Epigenetic regulation of innate and adaptive immunity