Dollar edges lower after weak U.S. factory production data