Soft scalar masses in supergravity with horizontal U(1)x gauge symmetry