Boston Beer Co has seen its full-year profits slip on rising costs, as both sales and volumes delivered growth.