President Obama says "race remains a potent and often divisive force in our society" but outlines ways to overcome the divide in his farewell speech to the nation.