A teenager from Guisborough has been barred from certain areas of the town under a three-year behaviour order.