US stocks close mostly in red, led by decline in tech stocks