U.S. factory orders beat expectations in December