Spectrum of global string networks and the axion dark matter mass