US should avoid unilateral military actions: Obama