Ayatollah Ali Khamenei, Iran’s supreme leader, has backed the outcome of the country’s presidential elections and warned protests against it must stop.