An efficient quantum algorithm for lattice problems achieving subexponential approximation factor