The Prince of Wales visited a men's shed as part of a series of engagements where he talked to locals about tackling isolation and loneliness.