An Investigation of Representation and Allocation Harms in Contrastive Learning