Joint declaration at BRICS urges need to work together to maintain smooth flow of global trade, supply chains and energy