Measurement of the WZ production cross section in pp collisions at $\sqrts = 7$ and 8 $\,\textTeV$ and search for anomalous triple gauge couplings at $\sqrts = 8\,\textTeV $