Measurement of the sum of WW and WZ production with W+dijet events in pp collisions at $\sqrt{s} = 7\ \mbox{TeV}$