Health secretary Matt Hancock has threatened to close down beaches if they become too crowded and social distancing is not observed.