UN chief Ban Ki-moon is to visit Israel and the Palestinian territories to try to end a wave of violence, as another Israeli soldier is stabbed.