Conductance distribution in disordered quantum wires: Crossover between the metallic and insulating regimes