US stocks close Friday lower, post weekly losses