Transient heat conduction in a medium with multiple spherical cavities