Supreme Court orders mediation to resolve Ayodhya case