The New York Times cancels public event with James Franco