Iranian security forces have clashed with protesters who had gathered in their thousands in Mahsa Amini’s home town to mark 40 days since her death.