Donald Trump will inherit, to all appearances, a solid economy when he assumes the presidency in January. After all, the stock market is at record highs, unemployment is low by historical standards and gross domestic product has been expanding at a healthy pace of around 2.5% so far this year.