Macy’s profit beats Street; forecast tops views