The first thing to do is to see a doctor who can provide some orthopedic support to limbs. The picture below is an example shoe support (made in USA). You have to get a prescription from your doctor. It is Carbon metal shoe insert and can be made from any orthopedic shop.
This is a plastic shoe insert made in India. This was made when we were in India-Gurgaon, Delhi