Trump attacks against NATO allies 'painful', says former NATO chief