Network Vector Autoregression Model with a Latent Group Structure