Large-scale clustering as a probe of the origin and the host environment of fast radio bursts