The retirement of former France and Bayern Munich attacking midfielder Franck Ribery has been speculated about for several weeks.