A local Paley–Wiener theorem for compact symmetric spaces