Brics consensus on Middle East elusive because of sharp differences, government backs Palestine cause