President Obama formally endorses Hillary Clinton