Man fined for headbutting police officer in Harrogate