Iran has been holding funerals for security force members killed during protests and for civilians killed by ‘rioters’.