A quantum Monte Carlo study of high pressure solid and liquid hydrogen