I would suggest you to get ankle x ray
and see if any abnormality with the bone is there. If x ray is normal then I would suggest you to apply compression bandage, Tablet Brufen
and hot water fomentation. It may be a possibility that for the protection of hip replacement
you are putting more weight on affected side.