Paul Ryan’s exit deals a titanic blow to House Republicans as they struggle to hold majority