A molecular theory of the chiral smectic C phase