Thousands gathered in the Iranian capital for the funeral of senior Islamic Revolutionary Guard Corps commander Razi Mousavi.