The Harry Potter author is running an international campaign to stop children being isolated in poor-quality institutions.