Obama: Turkish unity during foiled coup a ‘ray of hope’