Global optical/infrared-X-ray correlations in X-ray binaries: quantifying disc and jet contributions