Tropical Storm Edouard has weakened into a depression but is still dumping heavy rain and flooding parts of Texas.