Effects of solar modulation on the cosmic ray positron fraction