A breakthrough in treating painful corns that blight the lives of millions of people has been credited to an innovative health tech device developed in Scotland.