A black scholar at the University of Cambridge who was denied an interview for a senior role has lost a claim for race discrimination.