Asked if he released classified information, US president says he had 'the absolute right' to post image on Twitter