Sir Keir Starmer has refused to say whether Israel is committing genocide in Gaza following warnings from a top UN official.