A Measurement of the Mean Lifetimes of Charged and Neutral B-hadrons