TieBot: Learning to Knot a Tie from Visual Demonstration through a Real-to-Sim-to-Real Approach