Combination of CMS searches for heavy resonances decaying to pairs of bosons or leptons