Blackpool has won its first Blue Flag award after one of its beaches met the international standard for cleanliness.