Presidents Barack Obama of the US and Raul Castro of Cuba both thanked Pope Francis for helping bring the two nations together after decades