Dark Energy Survey Year 3 results: Cosmological Constraints from Galaxy Clustering and Weak Lensing