Herschel-ATLAS: The angular correlation function of submillimetre galaxies at high and low redshift