Statistics of eigenstates near the localization transition on random regular graphs