Many-body effects in the X-ray absorption spectra of liquid water