Foundation that bought Merthyr Tydfil Synagogue, unused as place of worship since 1983, seeks funding to renovate historic building