Water delivery from cores to disks: Deuteration as a probe of the prestellar inheritance of H2O