The rape conviction of movie producer Harvey Weinstein has been overturned by New York's highest court.