Coinbase posts $0.39 Q2 loss as crypto exchange revenue weakens