Non-abelian T-duality and consistent truncations in type-II supergravity