Interaction effects on thermal transport in quantum wires