A law firm discriminated against a senior partner through a compulsory retirement policy, a tribunal has found.