Water molecules form hydrogen bonds with each other, causing them to 'stick' together (cohesion). The surface tension of the water also creates this sticking effect. Therefore as water is lost through transpiration, more can be drawn up the stem from the roots.