Junior doctors have voted to accept a government pay deal worth 22.3 per cent on average over two years, bringing their long-running dispute to an end in Cumbria.