The nature of galaxy bias and clustering