Disused Nibthwaite barn to become community hub