The President's erratic behaviour, posts online and attitude towards the war in Iran have become an issue his closest allies can no longer ignore.