Cristiano Ronaldo has announced his retirement from international football, bringing the curtain down on a brilliant 23-year journey with Portugal.