From monks to malls, how pretzels traveled centuries to become one of America’s most beloved snacks