US chocolate maker Hershey has - as was widely expected - ruled itself out of the running to buy UK rival Cadbury.