Measurements of the top-quark mass and properties at CMS