Flavour alignment in multi-Higgs-doublet models