Dams helped contain 2018 floods, KSEB tells HC