Millions of people across Iran have attended mourning ceremonies to mark Ashura, one of the holiest days in the Shia religion.