Gold ends near post-Brexit vote low as dollar rallies