Stock market today: Wall Street falls to a rare losing week but remains close to its record