The two parties that have dominated Puerto Rican politics for decades are losing their grip as they face the stiffest competition yet from a younger generation fed up with the island’s corruption, chronic power outages and mismanagement of public funds.