Soft scalar masses in string models with anomalous U(1) symmetry