Bilinear forms in Weyl sums for modular square roots and applications