On the Hasse principle for cubic surfaces