Politicians and historians have urged the Duke and Duchess of Sussex not to attend King Charles' coronation.