US confectioner Hershey has acquired Canada's Allan Candy Co.