Nearly a quarter of the UK population have witnessed shoplifting in the last 12 months, a survey suggests.