AG Barr has hailed a strong start to the year despite increased levels of competition and an uncertain consumer environment.