Protesters in Iran have clashed with police again as some in the western city of Mahabad attempted to occupy government buildings as officials tried to link the demonstrations to a deadly attack on a mosque claimed by the Islamic State militant group.