United States Supreme Court Justice Anthony Kennedy has announced he will vacate the bench.