UN adopts treaty to control arms trade