Thousands of mourners gathered in Tehran as Iran began funeral ceremonies for late Supreme Leader Ayatollah Ali Khamenei.