Ex-British Cycling doctor Freeman loses appeal against medical ban