Hong Kong Chief Executive Carrie Lam has announced that the controversial extradition bill that sparked months of anti-government protests will be withdrawn.