Pope Leo has hit out at leaders who "drag the language of faith into political battles, to bless nationalism, and to justify violence in the name of religion".