A viable $$A_4$$ 3HDM theory of quark mass matrices