Iran's supreme leader Ayatollah Ali Khamenei has rejected the idea of negotiations with the US over its nuclear programme.