Nearly 40% of Scots registered with a dentist have not seen one in two years, figures have revealed.