Courteney Cox hangs out on the beach with daughter