T-duality and high-derivative gravity theories: the BTZ black hole/string paradigm