Stability of three-dimensional relativistic jets: implications for jet collimation