Cristiano Ronaldo has retired from international football following a fall-out with Portugal boss Jorge Jesus.