McCarthy fails in three votes for U.S. House speaker