Towards Understanding Self-Supervised Representation Learning