Tesco is to introduce special software in each of its 3,000 UK stores in an effort to combat shoplifting and violent thefts.