Pharrell Williams to join 'The Voice'