Police have launched an investigation after thefts of food over a three-month period in Harrogate.