J.R. Smith needs surgery on fractured thumb, Cavaliers say