Shares of Wendy’s surged more than 30% at one point Wednesday as retail investors piled into the fast-food chain.