On the relationship between volume fluctuations in liquids and the Gibbs free energy of cavity formation