UMass Memorial Health Care has signed a definitive agreement to acquire Harrington Hospital, a deal that would add a fourth community hospital to the Central Massachusetts system.