A method for assessing significance of peaks in cross-correlation histograms