Iran buried former Supreme Leader Ayatollah Ali Khamenei in his hometown of Mashhad following days of mass funeral processions across Iran and Iraq.