Classification of three-family flavoured DFSZ axion models that have no domain wall problem