Man jailed for Kendal hammer attack