BRICS presidency ends with focus on finance and security