Scottish Government publishes five-year plan to improve flow