Glueball masses and string tension in lattice QCD