Pub chain JD Wetherspoon has cancelled dividend payments to shareholders and curbed investment for new bars in order to meet debt repayments.