California announced an app to help people track their exposure to the coronavirus, becoming the largest U.S. state to take advantage of new technology from smartphone software makers Apple Inc. and Alphabet Inc.’s Google.