Man says addiction was motivation behind pharmacy thefts