Cristiano Ronaldo, 41, has retired from international football, ending months of intense speculation regarding his future with the Portugal national team.