Senedd members warned Wales failed to learn lessons from devastating floods in 2020, with serious shortcomings repeated as Storm Bert wrought havoc over the weekend.