Hadron masses in quantum chromodynamics on the transverse lattice