A simple blood test to identify the sex of foetuses at just seven weeks could cut the need for further risky tests during pregnancy, say scientists.