Lifetimes and branching fractions of mesons with heavy-quark constituents