A 47-year-old man who stole cosmetics and perfumes worth £25,000 from Boots stores in three towns has been jailed for two years.