Decoherence and relaxation of a qubit coupled to an Ohmic bath directly and via an intermediate harmonic oscillator