Soaring input costs have caused a fall in full-year profit at Shepherd Neame, but the UK ale brewer said its beer brands remained "resilient" to a market downturn.