Optimal graphon estimation in cut distance