VARADE: a Variational-based AutoRegressive model for Anomaly Detection on the Edge