Cross-shore flow in waves breaking on a beach