Global military spending undermines development goals, says UN Secretary General