Dark Energy Survey Year 3 results: Galaxy-halo connection from galaxy-galaxy lensing