De Giorgi-Moser theorem for a class of degenerate elliptic equations