Cuts to flood defences have been dropped