RepMatch: Quantifying Cross-Instance Similarities in Representation Space