US stocks are retreating from their records as worries worsen about the escalating violence in the Middle East.