iPhone maker one of Wall Street’s biggest casualties despite Tim Cook’s efforts to court US president