A Hertfordshire and Welwyn Hatfield councillor who works as an NHS surgeon used an iPad to cheat during two medical exam papers.