After Netanyahu fails to form coalition, president seeks to prevent a third election while managing an uneasy relationship with Likud leader