Totally summable functions with values in locally convex spaces