Lewis Hamilton was frustrated with the performance of his Ferrari as he encountered brake problems during second practice.