Julian Assange says he will leave the Ecuadorian embassy in London and accept arrest if a UN panel rules against him.