Barack Obama calls for ‘sanity in politics’ in another swipe at Donald Trump