Cryptocurrency prices have retreated sharply after most of them climbed to their all-time high in April.