US president, who has previously raised the possibility of the US quitting Nato, renews attack on alliance