At least 18 people were killed and 23 injured in eastern Thailand after the brakes failed on a tour bus and it rolled upside down into a ditch, police said.