National Highways has warned motorists to expect four months of disruption as part of a scheme to reduce flood risk.