AI can tell a person's sex from brain scans with 90 per cent accuracy