Clustering of galaxies in a hierarchical universe - III. Mock redshift surveys