‘Real Housewives of Miami’ star reaches pretrial agreement with prosecution to drop spying charges