Antoine Griezmann has retired from international football after an illustrious career as the rock of France's midfield.