At least 24 people have been killed in the US state of Texas after heavy rain caused flash flooding, according to local media reports.