Sterling gains on Brexit deal optimism; dollar dithers before Fed