Iranian president says Tehran will not bow to pressure while remaining open to dialogue in defiant UN speech.