How long is cooked rice safe to keep in the fridge? Here’s what you need to know