Torques exerted by a shallow fluid on a non-spherical, rotating planet