US President Barack Obama visited Hiroshima, site of the first nuclear attack on Japan in August 1945, which led to Japan's surrender in the Second World War.