FTX founder Sam Bankman-Fried has offered an explanation of why the crypto exchange failed in a new letter.