The distance to the Sagittarius dwarf spheroidal galaxy from the red giant branch tip