BRICS nations agree on social security pacts for labour migration