The vast majority of the dead perished in rain-driven mudslides that buried dwellings in the region’s numerous hillside “favelas,” or shantytowns.