Competing collective and quasiparticle structures in the transitional nucleus 104Cd