Swelling, shrinkage and creep: a mechanical approach to cement hydration