Britain pledges funds to educate 170,000 girls in poor nations post-Brexit