Shops are selling hundreds of cookies within minutes as the frenzy sends prices of ingredients surging.