Trump has suggested using force to stop Iran's nuclear programme, in statements condemned by Tehran at UN.