US president's outburst came in a series of sharply worded tweets aimed at Elijah Cummings - a high-profile critic.