US factory orders fall after five months