Gusts of up to 70mph and heavy rain will bring potentially "dangerous" conditions and travel disruption to parts of the UK later this week, forecasters have warned.