Maternity wards at the University Hospital of North Durham and Darlington Memorial Hospital have extended their visiting hours, it has been confirmed.