Police in the western Turkish city of Istanbul have fired tear gas and rubber bullets to disperse thousands of anti-government protesters in Taksim Square.