Cosmology of spontaneously broken gauge family symmetry with axion solution of strong CP-problem