Rishi Sunak has abstained from voting on the smoking ban, one of the landmark policies he put forward as Prime Minister.