I want to know what surgery was done in shoulder. You have not mentioned that. If there is no implant inside then I would suggest you to get MRI
of the shoulder. If there is an nerve
compression or any rotator cuff
impingement any thing can be confirmed by this, and about clicking of your hips I would recommend you to get x ray
of the hip joint.