WikiLeaks founder Julian Assange should be released and compensated for his years of detention, a UN panel has said.