US president’s remarks come after Iranian counterpart signals several countries attempting mediation to end war