Measurement of the TeV atmospheric muon charge ratio with the full OPERA data set