Measurement of the W+W− cross section in pp collisions at $\sqrt{s} = 7\mbox{ TeV}$ and limits on anomalous WWγ and WWZ couplings