Cristiano Ronaldo has announced his retirement from international football, ending his career with the national team.