Our 94 year old neighbour is in exactly that situation. He fell and broke his leg, was taken into hospital and has returned home.
His relatives live hundreds of miles away and he has outlived all but one of his friends.
The local social services have provided a wonderful service to him. He has two carers coming in 4 times day, meals on wheels, a community alarm and regular visits from the district nurse. He also has a cleaner and a laundry service. The carers also collect such shopping as he needs.
He has to pay a certain amount for these services, I have no idea how much, but it certainly will not be anything like their actual cost.
He also has his affairs (bills, money etc) taken care of by his solicitor who has power of attorney.
Sadly, he is gradually failing to cope and will inevitably have to move into a nursing home probably sooner rather than later, but at the moment he is exactly where he wants to be.