The biggest IPO of the year tested investor demand and picked up about $16bn on its first trading day as a Nasdaq-listed company.