Resource Allocation for RIS-Assisted CoMP-NOMA Networks using Reinforcement Learning