I haven't done any real tests on this, but when my villagers are weak, but agewise, still ok, I just ensure that they stay on safe and less exerting tasks like researching, and they slowly recover. Oh, and there must be plenty of food available as well