Planning permission has been granted for a former shop in Dunoon town centre to be converted into a community-use facility.