US stock market closes lower on Friday