The role of the hydraulic resistance of the river bed and the time dependent response of the foundation layers in the assessment of water defences for macrostability and piping