President Obama warns against getting ‘cocooned’ in bias via social media