H3K36 methylation maintains cell identity by regulating opposing lineage programmes