Flux pinning and creep in high-Tc superconductors