A random network model calculation of the free energy of liquid water