Electric field mediated switching of mechanical properties of strontium titanate at room temperature