The US president also cast doubt on Britain’s ability to defend the Falkland Islands during the visit to Ireland.