BRICS agree to set up credit rating agency