S-duality and correlation functions at large R-charge