Two crashes in the Rhondda Valleys has led to the closure of two main roads