Understanding the dielectric properties of water