Semialgebraic topology over a real closed field I: Paths and components in the set of rational points of an algebraic variety