Europe's top Olympic official, Ireland's Pat Hickey, has had an appeal for bail denied by a Brazilian judge and has been taken to Bangu maximum security prison in Rio de Janeiro.