From the double-stranded helix to the chiral nematic phase of B-DNA: A molecular model