After many disappointing IPOs we reveal the key ingredients for a successful float