S-duality in $T\bar{T}$-deformed CFT