South Korea's lawmakers have voted to impeach President Park Geun Hye over an alleged influence-peddling scandal.