On the Memorization Properties of Contrastive Learning