President Obama poses for selfie at Mandela memorial