In his farewell speech, Obama will reassure Americans that democracy can survive