Visitors to Redcar's Dessert Festival learned about the origins of the sweet treat.