Structure and anomalous properties of liquid water