A rapidly ageing society challenges efforts to rein in debt, as hundreds of millions exit the workforce amid stretched pensions.