The effects of relatedness and sex-biased demographic processes on human genetic variation