Crypto exchange FTX has gone bankrupt and its high-profile chief executive Sam Bankman-Fried has resigned amid major troubles at the company.