Obama: I'll weigh in on Trump's presidency if necessary