Magnetic and spin-liquid phases in the frustrated t-t′ Hubbard model on the triangular lattice