Star formation in the first galaxies – II. Clustered star formation and the influence of metal line cooling