Risk-based optimal investment and proportional reinsurance of an insurer with hidden regime switching