President Barack Obama has reversed his decision to release photographs of prisoner abuse by US personnel in Iraq and Afghanistan.