Hierarchical registration method for connect UE to5G network and related apparatuses using the same