US President Donald Trump accused some Western allies of ingratitude after several countries rebuffed his demand to send warships to escort oil tankers.