Stora folkmassor samlades i Teheran för att svära trohet till Irans nye högste ledare, Mojtaba Khamenei.