A major incident has been declared in South Wales after dozens of homes, businesses and a number of schools were affected by flooding during Storm Bert.