A Probabilistic Model to explain Self-Supervised Representation Learning