Hyundai Motor has reached a tentative agreement with its unions over wages and benefits following a series of partial strikes.