Aye mrbrownstone,
TAKE IT BACK AND ASK THE DEALER TO RECTIFY THE FAULTS!
Goods not fit for purpose etc.
Could be furred up carbs, split inlet hoses, blocked fuel filter, condensation in the bottom of the tank. My F650 did this trick after water was trapped around the top of the tank [because the drain tube was blocked] and went into the tank when filling up with petrol. Coughing and banging with 'kangaroo' progress until fuel system drained and new fuel filter installed with clean fuel.
Hope this helps, Bill