IPL franchises allowed to retain up to five players