US stocks close with sharp increases after Trump cancels attacks on Iran