US confectioner Hershey has reached a "tentative" labour agreement with the union representing its Pennsylvania-based employees over a possible relocation.