West Ham ended 2018 in disappointing fashion with a 2-0 defeat at Turf Moor against struggling Burnley.