Coinbase reports plunge in revenue and swings to a loss as investors exit crypto