Prisoners to virtually consult NHS doctors under new national agreement