Leaving White House, US president pushes back against accusations that his rhetoric fuels violence, says critics 'looking for political gain'