World number one Serena Williams has pulled out of the WTA Tour Finals, and will end her season early, after a rollercoaster campaign.