Obama scolds press for ‘obsession’ covering hacked emails during campaign