The pope has called for the preservation of Indigenous traditions in Peru as he wraps up a 12-day tour of Latin America.