Barack Obama, the US president, has told Iran “the world is watching” its actions after the country’s supreme leader demanded an end to street protests over recent elections.