Dollar finds footing after stocks slide, Brexit fears hammer pound