Half of Earth’s water formed before the sun was born