Results on b hadron properties in CMS