US stocks record worst week of 2023; Dow falls most since June