Japan is rolling out robots in nursing homes, offices and schools as its population ages and workforce shrinks. What can it teach other countries facing the same problems?