R-current correlators in N = 4 super-Yang-Mills theory from anti-de Sitter supergravity