Michael Caine has quit drinking alcohol in a bid to spend more time with his three grandchildren.