Hurricane John struck Mexico's Pacific coastline twice in the past week, causing flooding and mudslides that killed at least 22 people.