Millions of Iranians have gathered in Tehran as the country begins a week of funeral ceremonies for former supreme leader, Ayatollah Ali Khamenei.