On the distribution of sums of two squares