Hershey has been fined C$4m after admitting fixing the price of chocolate products in Canada.