JCB has posted a jump in profits for the past year but warned over “challenging” conditions in the UK construction market.