China has banned all transactions in currencies such as bitcoin, saying they are illicit and cannot be circulated.