Hershey has confirmed it has resolved a legal battle with LBB Imports, a US firm the confectionery giant had accused of infringing its trademarks.