Thermal convection in a twisted horizontal magnetic field