By Diane Bartz, David Shepardson and Karen Freifeld WASHINGTON (Reuters) -Alphabet’s Google will pay $391.5 million to settle allegations by 40 states that the search and advertising giant illegally tracked users’ locations, the Michigan attorney general’s office said Monday. The investigation and settlement, which was led by Oregon and Nebraska, is a sign of mounting legal headaches for the tech giant from state attorneys general who have aggressively targeted the firm’s user tracking practices in recent months. In addition to the payment, Google must be more transparent with consumers about …