Olympic silver medallist Katarina Johnson-Thompson pulls out of the Commonwealth Games because of injury.