At least 27 people have died after flash floods and landslides hit the north of Indonesia's Sumatra island.