The X-ray spectral properties of accretion discs in X-ray binaries