A vacant Llandrindod Wells hotel which has been shut for about five years will be transformed into a mixed-use development including 18 residential flats