A three Higgs doublet model with symmetry-suppressed flavour changing neutral currents