How GroupOn’s record-breaking IPO put it on course for disaster