A nonlocal problem modelling ohmic heating with variable thermal conductivity