Competition between magnetic ordering and random spin freezing in Dy2PtS3