Search for a charged Higgs boson decaying to charm and bottom quarks in proton-proton collisions at sqrt(s) = 8 TeV