Millennials and Gen Zs are piling into exchange-traded funds amid a volatile sharemarket that has been rocked by the Middle East conflict and interest rate rises.