Transcriptional memory and cellular identity in mouse embryonic stem cells