Ultra-high Q resonances governed by quasi-bound states in the continuum in all-dielectric THz metamaterials