Junior doctors in England have voted to accept a Government pay deal worth 22.3% on average over two years, the British Medical Association (BMA) has said.