Gold futures end lower after five-session rise