Limit theorems for theta sums