Heavy rains and severe flash floods have left more than 300 people dead and displaced thousands of others across parts of east Africa, with Kenya and Rwanda being the worst hit.