Optimal transport with $f$-divergence regularization and generalized Sinkhorn algorithm