Mars once had oceans, ‘vacation-style’ beaches, study suggests