Retentive Decision Transformer with Adaptive Masking for Reinforcement Learning based Recommendation Systems