US actors' union SAG-AFTRA has agreed a "tentative deal" with Hollywood studio bosses - bringing a 118-day strike to an end.