Former Argentina fly-half Nicolas Sanchez has announced his retirement from rugby at the age of 36.