Clashes have erupted in the Iraqi capital Baghdad after top Shia cleric Muqtada al-Sadr announced his withdrawal from power.