Towards Responsible AI in the Era of Generative AI: A Reference Architecture for Designing Foundation Model based Systems