A cost–benefit analysis of mitigation options for optimal management of risks posed by flow-like phenomena