Markets have shrugged off a barrage of shocks in recent years but that resilience may not last forever, according to HSBC.