Decades of "reckless arms trading" by world powers helped the Islamic State group get its hands on a vast arsenal of weapons, Amnesty International says.