At least 18 people have died in flooding caused by torrential rain on South Africa's eastern coast, local authorities said on Tuesday.