Exact reduced dynamics for a qubit in a precessing magnetic field and in contact with a heat bath