Thermal convection in a toroidal duct of a liquid metal blanket. Part I. Effect of poloidal magnetic field