Hershey and Nestle have said they will continue to defend themselves against allegations of fixing the price of chocolate in the US after a court gave the all-clear for a class action lawsuit.