David Moyes admits his frustration at West Ham's "poor" defending in the 3-2 defeat against Newcastle at the London Stadium.