UN adopts treaty to regulate global arms trade