Actor Tom Hanks says he has type 2 diabetes