Almost global solutions of capillary-gravity water waves equations on the circle