(Reuters) - Losses in technology and financial stocks weighed on Wall Street on the last trading day of 2017, in what has been a banner year for U.S. shares.