Singer Shakira reaches deal to avoid tax fraud trial