On the Dynamics of a Rigid Body with Cavities Completely Filled by a Viscous Liquid