Barack Obama, the US president, visits Latin America in an attempt to rebuild lost influence in the region.