Pope Leo XIV has criticised foreigners who exploit Africa's wealth for profit during his visit to a conflict-hit region of Cameroon.