Fluctuating geometries in statistical mechanics and field theory