WASHINGTON—President Barack Obama has instructed U.S. intelligence agencies to investigate hacking activity aimed at meddling in the 2016 election, one of his top security advisers said Friday.

U.S. intelligence and homeland-security officials have blamed Russia for the intrusions, including the theft of emails from the Democratic National Committee and Hillary Clinton’s campaign staff, other hacking and fabricated news stories.

The...