The quantum dual string wave functional in Yang-Mills theories