The government will make it quicker to get an HGV driver licence, amid an industry-wide shortage.