At least 18 people have died after an express train derailed and flipped over on a popular coastal tourist route in Taiwan.