Flooding has closed roads and disrupted rail services in England and Wales.