Burnley manager Sean Dyche says Joey Barton's 18-month ban for breaching Football Association betting rules is "harsh".