Flavour-changing Higgs couplings in a class of two Higgs doublet models