Phase stability and shear softening in CaSiO3 perovskite at high pressure